#include "../header.h"

int main(int argc, char const *argv[])
{
    int fd = open("./red.c", O_RDWR);
    if(fd == -1)
    {
        perror("open");
        return -1;
    }
    unsigned int color_buf[800*480]={0};
    for(int i = 0; i<800*480; i++)
    {
        color_buf[i] = 0x00ff00;
    }
    // 写入
    write(fd, color_buf, 800*480*4);
    close(fd);

    return 0;
}
